<html {$html_attrs}>
<head>
<title>{$caption proforma_invoice_items}</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
<style>
.grid_block {  
margin-top:5px;
border-collapse: collapse;
align:center;
width:95%;
border:none;
} 
.grid_block td { 
 padding: 5px; 
 margin: 0px; 
 border: solid black 1px;
}
.grid_block .gridspacing {width:20px;border-top-color:white; border-bottom-color:white;background-color:white}
@media print 
{
	a.pdf {display:none}
}
.printpage {page-break-after:always}
#selpage{margin-left:30px;}
</style> 
</head>
<body style="background-color:white">
{BEGIN body}
{$header}
{BEGIN page}
{BEGIN mastertable_block}
<div id="mastertable_block">
{$showmasterfile}
</div>
{END mastertable_block}

<h1>{$caption proforma_invoice_items}</h1>
{BEGIN page_number}
<div id='selpage'>{mlang_message PAGE1} {$pageno} {mlang_message PAGE2} {$maxpages} </div>
{END page_number}
{BEGIN pdf_block}
{BEGIN pdflink_block}
<a href=# class=pdf {$pdflink_attrs}>{mlang_message PDF_VIEW}</a>
{END pdflink_block}
{END pdf_block}

{BEGIN grid_block}

<table align="center" cellpadding=5 class="grid_block">
{BEGIN grid_header}
<tr>
{BEGIN record_header}
{BEGIN id_fieldheadercolumn}
	<td>
{BEGIN id_fieldheader}
	<b>{$label proforma_invoice_items id}</b>
{END id_fieldheader}
	</td>
{END id_fieldheadercolumn}
{BEGIN proforma_commercial_id_fieldheadercolumn}
	<td>
{BEGIN proforma_commercial_id_fieldheader}
	<b>{$label proforma_invoice_items proforma_commercial_id}</b>
{END proforma_commercial_id_fieldheader}
	</td>
{END proforma_commercial_id_fieldheadercolumn}
{BEGIN part_no_fieldheadercolumn}
	<td>
{BEGIN part_no_fieldheader}
	<b>{$label proforma_invoice_items part_no}</b>
{END part_no_fieldheader}
	</td>
{END part_no_fieldheadercolumn}
{BEGIN uom_id_fieldheadercolumn}
	<td>
{BEGIN uom_id_fieldheader}
	<b>{$label proforma_invoice_items uom_id}</b>
{END uom_id_fieldheader}
	</td>
{END uom_id_fieldheadercolumn}
{BEGIN quantity_fieldheadercolumn}
	<td>
{BEGIN quantity_fieldheader}
	<b>{$label proforma_invoice_items quantity}</b>
{END quantity_fieldheader}
	</td>
{END quantity_fieldheadercolumn}
{BEGIN description_fieldheadercolumn}
	<td>
{BEGIN description_fieldheader}
	<b>{$label proforma_invoice_items description}</b>
{END description_fieldheader}
	</td>
{END description_fieldheadercolumn}
{BEGIN unit_price_fieldheadercolumn}
	<td>
{BEGIN unit_price_fieldheader}
	<b>{$label proforma_invoice_items unit_price}</b>
{END unit_price_fieldheader}
	</td>
{END unit_price_fieldheadercolumn}
{BEGIN total_price_fieldheadercolumn}
	<td>
{BEGIN total_price_fieldheader}
	<b>{$label proforma_invoice_items total_price}</b>
{END total_price_fieldheader}
	</td>
{END total_price_fieldheadercolumn}
{BEGIN endrecordheader_block}
	<td class="gridspacing">&nbsp;</td>
{END endrecordheader_block}
{END record_header}
</tr>
{END grid_header}
{BEGIN grid_row}
<tr valign=top {$rowstyle} {$rowattrs}>
{BEGIN grid_record}
{BEGIN id_fieldcolumn}
<td {$id_style}>
{$id_value}
</td>
{END id_fieldcolumn}
{BEGIN proforma_commercial_id_fieldcolumn}
<td {$proforma_commercial_id_style}>
{$proforma_commercial_id_value}
</td>
{END proforma_commercial_id_fieldcolumn}
{BEGIN part_no_fieldcolumn}
<td {$part_no_style}>
{$part_no_value}
</td>
{END part_no_fieldcolumn}
{BEGIN uom_id_fieldcolumn}
<td {$uom_id_style}>
{$uom_id_value}
</td>
{END uom_id_fieldcolumn}
{BEGIN quantity_fieldcolumn}
<td {$quantity_style}>
{$quantity_value}
</td>
{END quantity_fieldcolumn}
{BEGIN description_fieldcolumn}
<td {$description_style}>
{$description_value}
</td>
{END description_fieldcolumn}
{BEGIN unit_price_fieldcolumn}
<td {$unit_price_style}>
{$unit_price_value}
</td>
{END unit_price_fieldcolumn}
{BEGIN total_price_fieldcolumn}
<td {$total_price_style}>
{$total_price_value}
</td>
{END total_price_fieldcolumn}
{BEGIN endrecord_block}
<td class="gridspacing">&nbsp;</td>
{END endrecord_block}
{END grid_record}
</tr>
{END grid_row}
<!-- totals row -->
</table>
{END grid_block}
{END page}
{$footer}
{END body}
</body>
</html>